/* 现代化资料列表页面样式 */

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

/* 主容器 */
.modern-material-container {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  overflow: hidden;
}

.modern-material-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: shimmer 15s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(180deg); }
}

/* 内容包装器 */
.content-wrapper {
  position: relative;
  z-index: 1;
  padding: 20px;
  padding-bottom: 80px;
}

/* 现代滚动区域 */
.modern-scroll {
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding-right: 10px;
}

.modern-scroll::-webkit-scrollbar {
  width: 6px;
}

.modern-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.modern-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.modern-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* 资料列表布局 */
.material-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 0;
}

/* 现代资料卡片 */
.material-item {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.material-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.material-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.material-item:hover::before {
  transform: scaleX(1);
}

.material-item:active {
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 卡片头部 */
.item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.item-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 24px;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.icon-text {
  font-size: 24px;
}

.item-title-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-title {
  font-size: 18px;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
}

.item-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* 卡片底部 */
.item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.stats-info {
  display: flex;
  align-items: center;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-icon {
  font-size: 14px;
}

.stat-text {
  font-size: 13px;
  color: #718096;
  font-weight: 500;
}

.action-area {
  display: flex;
  align-items: center;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.action-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-button:active {
  transform: scale(0.95);
}

.action-text {
  font-weight: 600;
}

.action-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.action-button:active .action-arrow {
  transform: translateX(2px);
}

/* 徽章 */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  margin-left: 8px;
}

.badge-hot {
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  color: white;
  animation: pulse 2s infinite;
}

.badge-new {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 107, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 107, 107, 0); }
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.8);
}

.empty-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.6;
}

.empty-text {
  font-size: 18px;
  margin-bottom: 10px;
}

.empty-subtext {
  font-size: 14px;
  opacity: 0.7;
}

/* 悬浮操作按钮 */
.fab-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 99;
}

.fab-button {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.fab-button:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(255, 107, 107, 0.6);
}

.fab-button:active {
  transform: scale(0.9);
}

.fab-icon {
  font-size: 24px;
  color: white;
  font-weight: 300;
}

.fab-label {
  font-size: 12px;
  color: white;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 15px;
    padding-bottom: 70px;
  }
  
  .material-item {
    padding: 16px;
  }
  
  .item-title {
    font-size: 16px;
  }
  
  .fab-container {
    bottom: 20px;
    right: 20px;
  }
  
  .fab-button {
    width: 48px;
    height: 48px;
  }
  
  .fab-icon {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .content-wrapper {
    padding: 10px;
    padding-bottom: 60px;
  }
  
  .material-item {
    padding: 14px;
  }
  
  .item-icon {
    width: 40px;
    height: 40px;
  }
  
  .icon-text {
    font-size: 20px;
  }
  
  .item-title {
    font-size: 15px;
  }
  
  .fab-container {
    bottom: 15px;
    right: 15px;
  }
  
  .fab-button {
    width: 44px;
    height: 44px;
  }
  
  .fab-icon {
    font-size: 18px;
  }
}

/* 暗色模式支持 */
@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  }
  
  .modern-material-container {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
  }
  
  .material-item {
    background: rgba(45, 55, 72, 0.95);
    color: #e2e8f0;
  }
  
  .item-title {
    color: #e2e8f0;
  }
  
  .item-description {
    color: #cbd5e0;
  }
  
  .item-stats {
    color: #a0aec0;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .material-item {
    border: 2px solid #667eea;
  }
  
  .action-button, .fab-button {
    border: 2px solid #ffffff;
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  .material-item,
  .action-button,
  .fab-button,
  .badge-hot {
    animation: none;
    transition: none;
  }
  
  .modern-material-container::before {
    animation: none;
  }
}

/* 打印样式 */
@media print {
  .fab-button {
    display: none;
  }
  
  .modern-material-container {
    background: white;
  }
  
  .material-item {
    background: white;
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  
  .action-button {
    display: none;
  }
}